package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DdOrderMapper;
import com.ruoyi.system.domain.DdOrder;
import com.ruoyi.system.service.IDdOrderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 订单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-02-19
 */
@Service
public class DdOrderServiceImpl implements IDdOrderService 
{
    @Autowired
    private DdOrderMapper ddOrderMapper;

    /**
     * 查询订单信息
     * 
     * @param uuid 订单信息ID
     * @return 订单信息
     */
    @Override
    public DdOrder selectDdOrderById(String uuid)
    {
        return ddOrderMapper.selectDdOrderById(uuid);
    }

    /**
     * 查询订单信息列表
     * 
     * @param ddOrder 订单信息
     * @return 订单信息
     */
    @Override
    public List<DdOrder> selectDdOrderList(DdOrder ddOrder)
    {
        return ddOrderMapper.selectDdOrderList(ddOrder);
    }

    /**
     * 新增订单信息
     * 
     * @param ddOrder 订单信息
     * @return 结果
     */
    @Override
    public int insertDdOrder(DdOrder ddOrder)
    {
        return ddOrderMapper.insertDdOrder(ddOrder);
    }

    /**
     * 修改订单信息
     * 
     * @param ddOrder 订单信息
     * @return 结果
     */
    @Override
    public int updateDdOrder(DdOrder ddOrder)
    {
        return ddOrderMapper.updateDdOrder(ddOrder);
    }

    /**
     * 删除订单信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDdOrderByIds(String ids)
    {
        return ddOrderMapper.deleteDdOrderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除订单信息信息
     * 
     * @param uuid 订单信息ID
     * @return 结果
     */
    @Override
    public int deleteDdOrderById(String uuid)
    {
        return ddOrderMapper.deleteDdOrderById(uuid);
    }
}
